<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <video src="./media/1.mp4" controls="controls" preload="auto" loop="loop"></video>
    <button>点击</button>
    <script>
        var oV = document.getElementsByTagName('video')[0];
        var oBtn = document.getElementsByTagName('button')[0];

        oBtn.onclick = function () {
            console.log('播放时间：' + oV.currentTime);
            console.log("媒体总时间：" + oV.duration);
            console.log("音量：" + oV.volume);
            console.log("是否静音：" + oV.muted);
        }

    </script>
</body>

</html>